package trlygjj.tanruiliyigenjinjin.mapper;

import org.apache.ibatis.annotations.Param;
import trlygjj.tanruiliyigenjinjin.domain.Role;
import trlygjj.tanruiliyigenjinjin.query.QueryObject;

import java.util.List;

public interface RoleMapper {
    void deleteByPrimaryKey(Long id);

    void insert(Role record);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    void updateByPrimaryKey(Role record);

    int queryForCount(QueryObject qo);

    List<Role> queryForList(QueryObject qo);

    void deleteRoleAndPermissionRelation(Long id);

    void saveRoleAndPermissionRelation(@Param("roleId") Long id, @Param("permissionId") Long id1);

    List<String> queryRoleSnByEmployeeId(Long id);

    void saveRoleAndSystemMenuRelation(@Param("roleId") Long id, @Param("systemMenuId") Long id1);

    void deleteRoleAndSystemMenuRelation(Long id);
}